<%@ page language="java"
	import="java.util.*,java.lang.*,java.text.SimpleDateFormat,com.firesrc.bean.ExceptionLog"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>错误信息</title>
</head>
<body>
	<h2>错误信息</h2> 
	<a href="/"> 返回主页</a>
	<%
		List<ExceptionLog> list = (List) request.getAttribute("list");
	%>
	<form action="" >
		<input type="hidden" name="type" value="add">
		<table border="1">
			<tbody align="left">
				<tr>
					<td>定制错误信息</td>
					<td>细节信息</td>
					<td>核心信息</td>
					<td>错误类型</td>
					<td>类名</td>
					<td>方法名</td>
					<td>创建时间</td>
					<td>状态</td>
					<td>编辑</td>
				</tr>
				<%
				SimpleDateFormat formater = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
					for (ExceptionLog excetpion : list) {
				%>
				<tr>
					<td><%=excetpion.getCustomMessage()%></td>
					<td><%=excetpion.getMessage()%></td>
					<td><%=excetpion.getCauseMessage()%></td>
					<td><%=excetpion.getKind()%></td>
					<td><%=excetpion.getClassName()%></td>
					<td><%=excetpion.getMethodName()%></td>
					<td><%=formater.format(excetpion.getCreateTime())%></td>
					<td><%=excetpion.getState()%></td>
					<td><a  href="/MailHostServlet?type=del&id=<%=excetpion.getId()  %>">&nbsp; 删除</a></td>
				</tr>
				<%
					}
				%>
			</tbody>
		</table>
	</form>
</body>
</html>